package sg.edu.nus.iss.cerberus.model;

import sg.edu.nus.iss.cerberus.engine.JUnitMethodCheck;

public class FixtureData {

	private JUnitMethodCheck assertionCheck;

	public JUnitMethodCheck getAssertionCheck() {
		return assertionCheck;
	}
	//	priyanka - bug fix, instantiation of the assertionCheck
	public FixtureData() {
		super();
		this.assertionCheck = new JUnitMethodCheck();
	}

	public void setAssertionCheck(JUnitMethodCheck assertionCheck) {
		this.assertionCheck = assertionCheck;
	}
	
	public void setAssertionData(String assertion)
	{
		assertionCheck.setValue(assertion);
	}
	
	//Priyanka addition of the below method for easy of extraction of data
	public boolean isAssertExist(String assertName)	{
		return assertionCheck.isAssertExists(assertName);
	}
}


